<!DOCTYPE html>
<html>
<head>
<title>Get Work Order Web</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">-->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
</head>
<body>
<?
	extract($_POST);
	extract($_GET);
	unset($_POST,$_GET);
	
	echo "<div class='container'>";
	echo "<div style='float:left'>";
	echo "	<form action='getwo.php?act=q' method='POST' role='form' class='form-inline'>";
	echo "		<div class='form-group'>";
	echo "			<label for='inputSN' class='col-sm-4 form-control'>工单号码</label>";
	if(strlen($wo)<=0){
		echo "			<input type='text' class='form-control' name='wo' id='inputSN' placeholder='请输入工单号码'>";
	}else{
		echo "			<input type='text' class='form-control' name='wo' id='inputSN' value='$wo'>";
	}
	echo "			<button type='submit' class='btn btn-info form-control'>查询</button>";
	echo "		</div>";
	echo "	</form>";
	echo "</div>";
	echo "<br><br>";
	echo "<div>";

	if(strlen($wo)<=0)
		echo "<div><font color='blue'>You need to input Work Order</font></div>";
	else{
		echo "<iframe src='http://10.100.160.37:1579/Default?WO=${wo}' height=700 width=100%></iframe>";
	}
?>

</body>
</html>